﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Guoling.ProjectName.Model;

namespace Guoling.ProjectName.Application
{
    public interface IUserAppService
    {
        /// <summary>
        ///添加用户
        /// </summary>
        /// <param name="StudentViewModel"></param>
        /// <returns></returns>
        Task<bool> Add(UserViewModel userViewModel);

        /// <summary>
        /// 获取所有的用户
        /// </summary>
        /// <returns></returns>
        Task<IEnumerable<UserViewModel>> GetAll();

        /// <summary>
        /// 通过Id获取用户
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<UserViewModel> GetById(int id);

        /// <summary>
        /// 修改用户
        /// </summary>
        /// <param name="StudentViewModel"></param>
        /// <returns></returns>
        Task<bool> Update(UserViewModel userViewModel);
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<bool> Remove(int id);
        /// <summary>
        /// 批量删除用户
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<bool> RemoveRange(IEnumerable<int> ids);

    }
}
